package com.xquant.trade.trade.mapper;

import com.xquant.trade.trade.entity.Balance;
import com.xquant.trade.trade.entity.BalanceChange;
import com.xquant.trade.trade.entity.Trade;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("TradePkgMapper")
public interface TradePkgMapper {


    void deleteBalanceHis(BalanceChange trade);

    void deleteBalance(BalanceChange trade);

    void insertBalance(BalanceChange trade);

    List<BalanceChange> queryBalanceChange(BalanceChange balanceChange);

    List<Balance> queryBalance(BalanceChange balanceChange);

    List<Balance> queryBalanceByVolumn(BalanceChange balanceChange);

    void updateBalance(BalanceChange balanceChange);

    void updateBalanceByChange(Balance balance);

    void insertBalanceByChange(BalanceChange balanceChange);

    void updateBalanceHis(BalanceChange balanceChange);

    void insertBalanceHis(BalanceChange balanceChange);

    void updateBalanceBlcDate(BalanceChange balanceChange);

    void deleteBalanceChangeAll(Trade trade);

    void deleteTradeAll(Trade trade);

    void deleteBalanceAll(Trade trade);

    void deleteBalanceHisAll(Trade trade);


}
